package com.faner.fast.upms.model;

import com.baomidou.mybatisplus.annotation.TableName;
import com.faner.fast.base.BaseModel;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;


@ApiModel(value = "用户表")
@TableName("sys_user")
@Data
@EqualsAndHashCode(callSuper = true)
public class SysUserDO extends BaseModel {

    @ApiModelProperty(value = "用户名")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @JsonIgnore
    @ApiModelProperty(value = "随机盐")
    private String salt;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "手机号")
    private String phone;

    @ApiModelProperty(value = "头像地址")
    private String avatar;

    @ApiModelProperty(value = "邮箱")
    private String email;

    @ApiModelProperty(value = "用户所属部门id")
    private Long deptId;

    @ApiModelProperty(value = "备注信息")
    private String note;

    @ApiModelProperty(value = "锁定标记")
    private String lockFlag;

    @ApiModelProperty(value = "登录时间")
    private LocalDateTime loginTime;
}
